@echo off
rem Populate databases and load default data

CALL C:\BitNami\REDMIN~1.0-2\scripts\setenv.bat

cd C:\BitNami\redmine-2.3.0-2/apps/redmine\htdocs
cmd /C bundle install --local --without development test postgresql sqlite --binstubs
C:\BitNami\redmine-2.3.0-2/ruby\bin\ruby.exe bin\rake generate_secret_token
C:\BitNami\redmine-2.3.0-2/ruby\bin\ruby.exe bin\rake db:migrate RAILS_ENV="production"
C:\BitNami\redmine-2.3.0-2/ruby\bin\ruby.exe bin\rake redmine:load_default_data RAILS_ENV="production" < lng.txt
		  